package com.roncoo.teacher.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.roncoo.teacher.entity.Lecturer;
import com.roncoo.teacher.dao.LecturerMapper;
import com.roncoo.teacher.service.ILecturerService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author changpengyu
 * @since 2021-03-24
 */
@Service
public class LecturerServiceImpl extends ServiceImpl<LecturerMapper, Lecturer> implements ILecturerService {

    @Resource
    private LecturerMapper lecturerMapper;

    @Override
    public IPage<Lecturer> queryLecturer(Page page,Lecturer lecturer) {
        IPage<Lecturer> page1 = lecturerMapper.queryLecturer(page,lecturer);
        return page1;
    }

    @Override
    public boolean updStu(Lecturer lecturer) {
        boolean qwe = lecturerMapper.upadteLec(lecturer);
        return qwe;
    }
}
